import adminLayout from '@/layout/admin/index';
import dataCenter from './dataCenter';
import searchCenter from './searchCenter';
import taskCenter from './taskCenter';
import safeCenter from './safeCenter';
import sitePortal from './sitePortal';
import platformManage from './platformManage';
import systemManage from './systemManage';
import userCenter from './userCenter';

export default [{
	path: '/admin',
	name: 'Admin',
	redirect: '/home',
	meta: { title: '首页' },
	component: adminLayout,
	children: [{
			path: '/home',
			name: 'adminIndex',
			meta: { title: "后台首页" },
			component: () => import('@/views/admin/index/index')
		},
		{
			path: '/data/resource/:id',
			name: 'DataResourceDetail',
			component: () => import("@/views/admin/data/resourceDetail/index")
		},
		...dataCenter,
		...searchCenter,
		...taskCenter,
		...safeCenter,
		...sitePortal,
		...platformManage,
		...systemManage,
		...userCenter
	]
}]